package stream;

import java.util.Date;
import java.util.function.*;

public class LamdaDemo {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("working.....");
            }
        };

        Runnable runnable1=()->{System.out.println("working.....");};

        new Thread(runnable1).start();

        Consumer consumer=item->{};
        Supplier supplier=()->new Date();
        Predicate<Integer> predicate= (Integer item)->item>0;
        Function<Integer,String> function=(Integer item)->item*2+"";
        BiFunction<Integer,Integer,String> function1=(Integer item1,Integer item2)->item1+item2+"";
    }
}
